home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-07-01 | 2.1 KB | 74 lines | [TEXT/CWIE] |
- // =================================================================================
- // CActiveXInfo.cp ⌐1996 Microsoft Inc. All rights reserved.
- // =================================================================================
-
- #include <LView.h>
- #include "ActiveXAppConstants.h"
- #include "ActiveXAPI.h"
- #include "InfoAPI.h"
- #include "CActiveXInfo.h"
-
-
- #pragma mark -------------- Construction/Destruction ------------------------
-
- // ---------------------------------------------------------------------------------
- // Ñ CreateActiveXInfotream [static]
- // ---------------------------------------------------------------------------------
-
- CActiveXInfo *
- CActiveXInfo::CreateActiveXInfoStream(
- LStream *inStream )
- {
- return new CActiveXInfo( inStream );
- }
-
-
- // ---------------------------------------------------------------------------------
- // Ñ CActiveXInfo(LStream*)
- // ---------------------------------------------------------------------------------
-
- CActiveXInfo::CActiveXInfo(
- LStream *inStream )
- : LView( inStream )
- {
- }
-
-
- // ---------------------------------------------------------------------------------
- // Ñ ~CActiveXInfo
- // ---------------------------------------------------------------------------------
-
- CActiveXInfo::~CActiveXInfo()
- {
- }
-
-
- // ---------------------------------------------------------------------------------
- // Ñ SetUserCon
- // ---------------------------------------------------------------------------------
- void CActiveXInfo::SetUserCon(Int32 inUserCon)
- {
- LPane::SetUserCon(inUserCon);
-
- char IDStr[64];
-
- AX_GetIDString(mUserCon, 0, kAXClassID, 64, IDStr);
- SetDescriptorForPaneID(kClassID, CtoPstr(IDStr));
-
- AX_GetIDString(mUserCon, 0, kAXUserName, 64, IDStr);
- SetDescriptorForPaneID(kUserName, CtoPstr(IDStr));
-
- AX_GetIDString(mUserCon, 0, kAXProgID, 64, IDStr);
- SetDescriptorForPaneID(kProgID, CtoPstr(IDStr));
-
- AX_GetIDString(mUserCon, 0, kAXFragName, 64, IDStr);
- SetDescriptorForPaneID(kFragName, CtoPstr(IDStr));
-
- AXPlatformPoint DefaultSize;
- AX_GetDefaultSize(mUserCon, 0, &DefaultSize);
- SetValueForPaneID(kPaneHeight, DefaultSize.v);
- SetValueForPaneID(kPaneWidth, DefaultSize.h);
-
- }
-
-